/**
 * Lambda表达式实现
 *
 * @author zhu
 * @date 2024-04-09
 */
public class MainTest01 {
    public static void main(String[] args) {
        Fun add = (a,b) -> a + b;
        Fun sub = (a,b) -> a - b;
        Fun mul = (a,b) -> a * b;
        Fun div = (a,b) -> a / b;
        System.out.println("两数之和：" + add.count(4,2));
        System.out.println("两数之差：" + sub.count(4,2));
        System.out.println("两数之积：" + mul.count(4,2));
        System.out.println("两数之商：" + div.count(4,2));
    }
}
